﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Text.Json;

namespace 畜牧业审核程序国产.Models.RagModel
{
    internal class JsonFromRag
    {
    }
    public class Choice
    {
        public Message? message { get; set; }
        public string? finish_reason { get; set; }
        public int index { get; set; }
        public object? logprobs { get; set; }
    }

    public class Message
    {
        public string role { get; set; }
        public string content { get; set; }
    }

    public class RootObject//返回的json文件根目录对象
    {
        public Choice[]? choices { get; set; }
        public string? @object { get; set; }
        public Usage? usage { get; set; }
        public long? created { get; set; }
        //public object? system_fingerprint { get; set; }//返回的json文件里面这个属性一直是null,就先不放进来了
        public string? model { get; set; }
        public string? id { get; set; }
    }
    public class Usage
    {
        public int prompt_tokens { get; set; }
        public int completion_tokens { get; set; }
        public int total_tokens { get; set; }
        public PromptTokensDetails prompt_tokens_details { get; set; }
    }
    public class PromptTokensDetails
    {
        public int cached_tokens { get; set; }
    }

}
